package regexobject;

public class ObjectDemo {
    public static void main(String[] args) {
//        Point p=new Point(100,100);
//        System.out.println(p.getX()+","+p.getY());
//        System.out.println(p.toString());
//        Point p1=new Point(300,500);
//        Point p2=new Point(300,500);
//        System.out.println(p1==p2);
//        System.out.println(p1.equals(p2));
        String name1=new String("李信德");
        String name2=new String("李信德");
        System.out.println(name1.equals(name2));
        Point.show();

    }
}
